package com.ruoyi.system.api;

import com.ruoyi.common.core.constant.ServiceNameConstants;
import com.ruoyi.system.api.factory.RemoteChanceFallbackFactory;
import com.ruoyi.system.api.factory.RemoteChatAiFallbackFactory;
import com.ruoyi.system.api.factory.RemoteFileFallbackFactory;
import org.springframework.cloud.loadbalancer.annotation.LoadBalancerClient;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.http.MediaType;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.HashMap;

/**
 * 远程ai
 *
 * @author ruoyi
 */
@FeignClient(name = "remoteChatAiService",contextId ="remoteChatAiService",url = "http://localhost:8303", fallbackFactory = RemoteChatAiFallbackFactory.class)
//@FeignClient(contextId = "remoteChatAiService", value = ServiceNameConstants.VIDEO_SERVICE, fallbackFactory = RemoteChatAiFallbackFactory.class)
//@FeignClient( name  = "ruoyi-video", fallbackFactory = RemoteChatAiFallbackFactory.class)
public interface RemoteChatAiService
{

    @GetMapping(value = "/dashscope/api/call")
    public String call(@RequestParam("msg")String msg,@RequestParam("userId")String userId);
}
